﻿<%@ Page Language="c#" CodeBehind="TreeView.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.MoveTeam.TreeViewPage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>项目移动</title>
  <uds:Style runat="server" Href="~/Css/BasicLayout.css" />
  <script language="javascript">
  //<!--
  function confirmRemove()
	{
	    var parwin = window.dialogArguments;	
	    tdText = TreeView1.getTreeNode(TreeView1.selectedNodeIndex).getAttribute("Text")
		if(confirm("您确认要移动原项目至 <<"+tdText+">> ?"))
		{
			parwin.location="TreeView.aspx?Action=1&FromID=<%=FromID%>&ToID="+TreeView1.getTreeNode(TreeView1.selectedNodeIndex).getAttribute("ID");
			window.close();
			parwin.alert('移动成功!');
			parwin.parent.location.reload();
		}
	}
  //-->
  </script>
</head>
<body>
  <table width="33%" border="0">
    <tr>
      <td>
        <iewc:TreeView ID="teamTreeView" ondblclick="javascript:confirmRemove()" runat="server" />
      </td>
    </tr>
    <tr>
      <td><input class="ButtonCss" type="button" value="确定" onclick="confirmRemove()"></td>
    </tr>
  </table>
  <form id="aspnetForm" method="post" runat="server">
  </form>
</body>
</html>
